# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-file-path-expand
pkgver=1.02
pkgrel=16
pkgdesc="Perl/CPAN Module File::Path::Expand"
arch=('any')
url="https://search.cpan.org/dist/File-Path-Expand"
license=("GPL" "PerlArtistic")
source=("https://www.cpan.org/authors/id/R/RC/RCLAMP/File-Path-Expand-1.02.tar.gz")
sha256sums=('7fb616a5d5904400a9e355ca540049a08605c60ce4f94297f2f8bd95dee9b495')

build() {
  cd "$srcdir"/File-Path-Expand-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}
package() {
  cd "$srcdir"/File-Path-Expand-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
